
package com.founder.bdyx.modules.sys.service.impl;

import com.founder.bdyx.modules.sys.mapper.ApplyInfoMapper;
import com.founder.bdyx.modules.sys.mapper.UserInfoMapper;
import com.founder.bdyx.modules.sys.model.ApplyInfo;
import com.founder.bdyx.modules.sys.model.UserInfo;
import com.founder.bdyx.modules.sys.service.ApplyInfoService;
import com.founder.bdyx.modules.sys.service.UserInfoService;
import com.github.pagehelper.PageHelper;
import org.apache.commons.lang3.StringUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import tk.mybatis.mapper.entity.Example;

import java.util.List;

//import com.founder.bdyx.modules.sys.service.MailService;

/**
 * @author yang.xuefeng
 */
@Service("userInfoService")
@Transactional
public class UserInfoServiceImpl implements UserInfoService {

    @Autowired
    private UserInfoMapper userInfoMapper;


    @Override
    public List<UserInfo> getAll(UserInfo userinfo, String keyword) {
        return null;
    }

    @Override
    public int saveOrUpdateUser(UserInfo userInfo) {
        return userInfoMapper.saveOrUpdateUser(userInfo);
    }

    @Override
    public int delUserByUuid(String openid) {
        return userInfoMapper.delUserByUuid(openid);
    }

    @Override
    public UserInfo getByUuid(String openid) {
        return userInfoMapper.selectByOpenId(openid);
    }
}
